<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>我的XXX-个人信息</title>
		<#include "/WEB-INF/ftl/user/include.ftl" />
		<link type="text/css" rel="stylesheet" href="${base}/css/user/user.css" />
		<link type="text/css" rel="stylesheet" href="${base}/css/user/user_edit.css" />
		<link type="text/css" rel="stylesheet" href="${base}/lib/zebra_datepicker/zebra_datepicker.css" />
		<script type="text/javascript" src="${base}/lib/jquery.js"></script>
		<script type="text/javascript" src="${base}/lib/zebra_datepicker/zebra_datepicker.js"></script>
		<script type="text/javascript" src="${base}/js/user/user_info.js"></script>
	</head>
	<body>
		<div class="justify-footer-wrapper">
			<#include "/WEB-INF/ftl/user/header.ftl" />
			<div class="wrapper">
				<div class="side">
					<h2 class="side-hd">我的XXX</h2>
					<ul class="side-list">
						<li class="pre-selected"><a href="${base}/user/userCenter.do">个人中心</a></li>
						<li class="selected"><a href="${base}/user/userInfo.do">个人信息</a></li>
						<li><a href="javascript:void(0);">更换头像</a></li>
						<li><a href="${base}/user/userHardwareComment.do">我的点评</a></li>
						<li><a href="${base}/user/userScheme.do">我的方案</a></li>
						<li><a href="${base}/user/userOrder.do">我的订单</a></li>
						<li class="last"><a href="${base}/user/userPassword.do">修改密码</a></li>
					</ul>
				</div>
				<div class="main">
					<h1 class="title">修改个人信息</h1>
					<div class="content">
						<form onsubmit="return false;">
							<ul>
								<#assign user = Session.user />
								<li>
									<span>电子邮箱：</span>
									<input type="text" name="user.email" value="${user.email!''}" id="email" class="input-text" />
								</li>
								<li>
									<span>真实姓名：</span>
									<input type="text" name="user.realName" value="${user.realName!''}" id="realName" class="input-text" />
								</li>
								<li>
									<span>性&emsp;&emsp;别：</span>
									<#if (user.gender.key)??>
										<#if user.gender.key = 2020>
									<input type="radio" checked="checked" name="user.gender.key" value="2020" id="gender.male" />
									<label for="gender.male" style="margin-right:30px;">男</label>
									<input type="radio" name="user.gender.key" value="2021" id="gender.female" />
									<label for="gender.female">女</label>
										<#else>
									<input type="radio" name="user.gender.key" value="2020" id="gender.male" />
									<label for="gender.male" style="margin-right:30px;">男</label>
									<input type="radio" checked="checked" name="user.gender.key" value="2021" id="gender.female" />
									<label for="gender.female">女</label>
										</#if>
									<#else>
									<input type="radio" name="user.gender.key" value="2020" id="gender.male" />
									<label for="gender.male" style="margin-right:30px;">男</label>
									<input type="radio" name="user.gender.key" value="2021" id="gender.female" />
									<label for="gender.female">女</label>
									</#if>
								</li>
								<li>
									<span>生&emsp;&emsp;日：</span>
									<input type="text" name="user.birthday" value="${user.birthday?date!''}" id="birthday" class="input-text" />
								</li>
								<li>
									<span>联系电话：</span>
									<input type="text" name="user.phone" value="${user.phone!''}" id="phone" class="input-text" />
								</li>
								<li>
									<span>现&ensp;居&ensp;地：</span>
									<input type="text" name="user.address" value="${user.address!''}" id="address" class="input-text" style="width:400px;" />
								</li>
								<li>
									<span>收货地址：</span>
									<textarea rows="3" cols="50" name="user.deliveryAddress" id="deliveryAddress"></textarea>
									<#if user.deliveryAddress??>
									<script>$('#deliveryAddress').text('${user.deliveryAddress?js_string!''}')</script>
									</#if>
								</li>
                                <li>
                                    <span>收货邮编：</span>
                                    <input type="text" name="user.postcode" value="${user.postcode!''}" id="postcode" class="input-text" />
                                </li>
								<li>
									<input type="submit" value="保存修改" onclick="modify();" class="input-button" />
								</li>
							</ul>
						</form>
					</div>
				</div>
			</div>
		</div>
		<#include "/WEB-INF/ftl/user/footer.ftl" />
	</body>
</html>
